
//初始化数据
const state = {
    user:{}
};
//action 异步的操作
const actions = {};
const mutations = {
    setUser(state,data){
        state.user=data;
        //(注：如果这里的userList需要axios请求也可以把axios写在等号后面)
    }
};
//getter 抛出去的数据
const getters = {
    user:state => state.user,
};
export default {
    state,
    mutations,
    actions,
    getters,
};
